using System.ComponentModel.DataAnnotations;

namespace Shard.Contracts.UserService.Dtos;

/// <summary>
/// 创建用户输入对象
/// </summary>
public class CreateUserDto
{
    [Required]
    [StringLength(50)]
    public string UserName { get; set; }
        
    [Required]
    [StringLength(50)]
    public string NickName { get; set; }
        
    [Required]
    [EmailAddress]
    public string Email { get; set; }
        
    [Required]
    [Phone]
    public string PhoneNumber { get; set; }
        
    [Required]
    [StringLength(100, MinimumLength = 6)]
    public string Password { get; set; }
}